package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.dto.ArticleDto;
import com.sangeng.domain.entity.Article;
import org.springframework.stereotype.Service;

/**
 * ClassName: ArticleService
 * Package: com.sangeng.service
 * Description:
 *
 * @Author hjh
 * @Create 2024/8/11 14:30
 * @Version 1.0
 */

public interface ArticleService extends IService<Article> {

    ResponseResult hotArticlList();

    ResponseResult articleList(Integer pageNumber, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult addArticle(ArticleDto articleDto);

    ResponseResult getPageList(Long pageNum, Long pageSize, String title, String summary);

    ResponseResult getArticleById(Long id);

    ResponseResult updateArticle(ArticleDto articleDto);

    ResponseResult deleteArticleById(Long id);
}
